export const GetMenus = (onClose) => {
    const userStore = useUserStore();
    const pageStore = usePageStore();

    return [
        {
            name: "首页",
            path: "/",
            show: true,
        },
        {
            name: "模板库",
            path: "/template.html",
            show: !pageStore.isMobile,
        },
        {
            name: "素材商店",
            path: "/materialStore.html",
            show: !pageStore.isMobile,
        },
        {
            name: "作品广场",
            path: "/worksSquare.html",
            show: !pageStore.isMobile,
        },
        {
            name: "作品广场",
            children: [
                {
                    name: "3D展厅",
                    path: "/worksSquare.html",
                    show: true,
                },
                {
                    name: "互动课件",
                    path: "/worksSquare/courseware.html",
                    show: true,
                },
            ],
            show: pageStore.isMobile,
        },
        {
            name: "知识视频",
            path: "/knowledgeVideos.html",
            show: true
        },
        {
            name: "新闻动态",
            path: "/news.html",
            show: true,
        },
        {
            name: "模板库",
            path: "/template.html",
            show: pageStore.isMobile,
        },
        // {
        //     name: "帮助中心",
        //     // path: "/help.html",
        //     children: [
        //         {
        //             name: "操作手册",
        //             path: "/help.html",
        //             show: true,
        //         },
        //         {
        //             name: "VR端下载",
        //             path: "/vrDownload.html",
        //             show: true,
        //         },
        //     ],
        //     show: true,
        // },
        {
            name: "操作手册",
            path: "/help.html",
            show: true,
        },
        {
            name: "云空间",
            path: "/vrDownload.html",
            show: true,
        },
        {
            name: "关于我们",
            path: "/aboutMe.html",
            show: true,
        },
        {
            name: "消息中心",
            path: "/message/1.html",
            show: pageStore.isMobile,
        },
        {
            name: "个人中心",
            path: "/admin.html",
            show: pageStore.isMobile && userStore.isLogin,
        },
        {
            name: "注册/登录",
            path: "/login.html",
            show: pageStore.isMobile && !userStore.isLogin,
        },
    ];
};
